<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">


    <title></title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link rel="shortcut icon" href="favicon.ico">
    <link href="/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="/css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link href="/css/plugins/iCheck/custom.css" rel="stylesheet">
    <link href="/css/animate.css" rel="stylesheet">
    <link href="/css/style.css?v=4.1.0" rel="stylesheet">

</head>

<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">


    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>权限管理 <small>编辑 “{{ $info->label }}”</small></h5>
                </div>
                <div class="ibox-content">
                    <form method="post" action="/admin/permission/doEdit" class="form-horizontal">
                        {{csrf_field()}}
                        <input type="hidden" name="info[id]" value="{{ $info->id }}"/>
                        <input type="hidden" name="info[cid]" value="{{ $info->cid }}"/>
                        <div class="form-group @if($errors->has('info.name')) has-error @endif">
                            <label class="col-sm-2 control-label">权限规则：</label>
                            <div class="col-sm-6">
                                <div class="row">
                                    <div class="col-md-8">
                                        <input type="text" name="info[name]" value="{{ old('info')['name']?old('info')['name']:$info->name }}"
                                               placeholder="权限规则" class="form-control">
                                        <span class="help-block m-b-none">{{$errors->first('info.name')}}</span>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group @if($errors->has('info.label')) has-error @endif">
                            <label class="col-sm-2 control-label">权限名称：</label>
                            <div class="col-sm-6">
                                <div class="row">
                                    <div class="col-md-3">
                                        <input type="text" name="info[label]" value="{{ old('info')['label']?old('info')['label']:$info->label }}"
                                               placeholder="权限名称" class="form-control">
                                        <span class="help-block m-b-none">{{$errors->first('info.label')}}</span>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group @if($errors->has('info.description')) has-error @endif">
                            <label class="col-sm-2 control-label">权限描述：</label>
                            <div class="col-sm-10">
                                <div class="row">
                                    <div class="col-md-3">
                                        <input type="text" name="info[description]" value="{{ old('info')['description']?old('info')['description']:$info->description }}"
                                               placeholder="权限描述" class="form-control">
                                        <span class="help-block m-b-none">{{$errors->first('info.description')}}</span>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <div class="col-sm-4 col-sm-offset-2">
                                <button class="btn btn-primary" type="submit">保存内容</button>
                                <a href="javascript:void(0);" onclick="window.history.back()">
                                <button class="btn btn-white" type="button">取消</button>
                                </a>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>

<!-- 全局js -->
<script src="/js/jquery.min.js?v=2.1.4"></script>
<script src="/js/bootstrap.min.js?v=3.3.6"></script>

<!-- 自定义js -->
<script src="/js/content.js?v=1.0.0"></script>

<!-- iCheck -->
<script src="/js/plugins/iCheck/icheck.min.js"></script>
<script>
    $(document).ready(function () {
        $('.i-checks').iCheck({
            checkboxClass: 'icheckbox_square-green',
            radioClass: 'iradio_square-green',
        });
    });
</script>

<script type="text/javascript" src="http://tajs.qq.com/stats?sId=9051096" charset="UTF-8"></script>
<!--统计代码，可删除-->

</body>

</html>
